Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Image Structure

Texture maps and bitmaps are defined using pixel images (or pixmaps). To specify a pixel image, you fill in an image structure, defined by the TQAImage data structure.

struct TQAImage {
    long                                width;
    long                                height;
    long                                rowBytes;
    void                                *pixmap;
};
typedef struct TQAImage TQAImage;
width
The width, in pixels, of the pixmap.
height
The height, in pixels, of the pixmap.
rowBytes
The distance, in bytes, from the beginning of one row of the image data to the beginning of the next row of the image data. (For some low-cost accelerators, setting the value in this field to the product of the value in the width field and the pixel size improves performance.)
pixmap
A pointer to the image data.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |